package news.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;

@ApiModel
@Component
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Admin {

    private Integer id;
    @ApiModelProperty(value = "管理员账号")
    private String account;
    @ApiModelProperty(value = "管理员密码")
    private String password;
    @ApiModelProperty(value = "管理员性别")
    private String gender;
    @ApiModelProperty(value = "管理员电话")
    private String phone;
    private Integer type;
    private Integer roleId[];
    private Admin admin;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date operTime;
    private String adminToken;
    private List<Role> roles;
    private Integer pageNum;
    private Integer pageSize;

}
